package com.samphanie.auiu.common.dto;

import com.samphanie.auiu.common.constants.AuiuConstants;
import lombok.Builder;
import lombok.Data;
import lombok.With;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Map;

/**
 * @author ZSY
 * @email 1451691457@qq.com
 */
@Data
@With
@Builder
public class SendEmailDto implements Serializable {
    private static final long serialVersionUID = 8072021135743114000L;

    @NotBlank
    private String to;
    @Builder.Default
    private String from = AuiuConstants.DEFAULT_EMAIL_ADDRESS;
    @NotBlank
    private String subject;
    @NotNull
    private Map<String, Object> message;
    @NotBlank
    private String template;

}
